<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%
    Object user = request.getAttribute("user");
%>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="/static/themes/metro/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/themes/mobile.css">
    <link rel="stylesheet" type="text/css" href="/static/themes/icon.css">
    <script type="text/javascript" src="/static/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="/static/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/jquery.easyui.mobile.js"></script>
    <script type="text/javascript" src="/static/easyui-lang-zh_CN.js"></script>
    <style>
        .fl{float: left;}
        .fr{float: right;}
        .clear{clear: both;}

        .footer{
            position: fixed;
            bottom: 0px;
            background-color: #FFFFFF;
        }

        .body{
            margin-bottom: 100px;
        }
    </style>
</head>
<body>

    <header>
        <div class="m-toolbar">
            <div class="m-title">雅雅房产</div>
        </div>
    </header>
    <footer>
        <div class="m-buttongroup m-buttongroup-justified footer" style="width:100%">
            <a href="/" class="easyui-linkbutton" data-options="iconCls:'icon-large-smartart',size:'large',iconAlign:'top',plain:true">首页</a>
            <c:if test="${user == null}">
                <a href="/login" class="easyui-linkbutton" data-options="iconCls:'icon-large-clipart',size:'large',iconAlign:'top',plain:true">登录</a>
            </c:if>
            <c:if test="${user != null}">
                <a href="/personal" class="easyui-linkbutton" data-options="iconCls:'icon-large-clipart',size:'large',iconAlign:'top',plain:true">个人中心</a>
            </c:if>
        </div>
    </footer>
</body>
</html>